// 表单字段配置
export const formColumns: any = [
    {
        prop: 'merchantId',
        label: 'ID',
        isEdit: false, // 是否可编辑,组件属性是 disabled， true 为不可编辑，false 为可编辑
        isShow: false, // 是否显示，组件属性是 v-show， false 为隐藏，true 为显示
    },
    {
        prop: 'merchantName',
        label: '商铺名称',
        isEdit: false,
        isShow: true,
        width: 120,
        value: '',
        placeholder: '请输入商铺名称',
    },
    {
        prop: 'merchantLogo',
        label: '商铺头像',
        type: 'avatar',
        action: 'http://localhost:8018/file/uploadAvatar',
        isEdit: false,
        isShow: true,
        width: '120',
        value: '',
    },
    {
        prop: 'categoryId',
        label: '经营类型',
        type: 'select',
        width: 120,
        isEdit: false,
        isShow: true,
        value: '',
        options: [],
    },
    {
        prop: 'merchantDesc',
        label: '商铺简介',
        type: 'textarea',
        width: 120,
        isEdit: false,
        isShow: true,
        value: '',
        placeholder: '请输入商铺简介',
        rows: 3,
    },
    {
        prop: 'businessLicense',
        label: '营业执照',
        type: 'photo',
        action: 'http://localhost:8018/file/uploadAvatar',
        isEdit: false,
        isShow: true,
        width: 120,
        value: '',
    },
    {
        prop: 'merchantBoss',
        label: '负责人',
        type: 'text',
        width: 120,
        isEdit: false,
        isShow: true,
        value: '',
        placeholder: '请输入负责人',
    },
    {
        prop: 'contactPhone',
        label: '联系电话',
        type: 'text',
        width: 120,
        isEdit: false,
        isShow: true,
        value: '',
        placeholder: '请输入联系电话',
    },
    {
        prop: 'address',
        label: '商铺地址',
        type: 'text',
        width: 120,
        isEdit: false,
        isShow: true,
        value: '',
        placeholder: '请输入商铺地址',
    },
    {
        prop: 'merchantStatus',
        label: '经营状态',
        type: 'select',
        width: 120,
        isEdit: false,
        isShow: true,
        value: '',
        options: [
            {
                label: '正常',
                value: 1,
            },
            {
                label: '关闭',
                value: 0,
            },
        ],
    },
    {
        prop: 'checkStatus',
        label: '审核状态',
        type: 'select',
        width: 120,
        isEdit: false,
        isShow: true,
        value: '',
        options: [
            {
                label: '已通过',
                value: 1,
            },
            {
                label: '待审核',
                value: 0,
            },
        ],
    },
]